package com.bobanngame.rest;

import com.bobanngame.service.impl.UserServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by xuejia on 2017/2/8.
 */
@RestController
@RequestMapping("/rest/user")
public class UserRestController {

    @Autowired
    private UserServiceImpl userServiceImpl;

    @RequestMapping(value = "/add", method = RequestMethod.GET)
    public String add(){
        userServiceImpl.addUser();
        return "successed";
    }
}
